#include <iostream>
struct func
{
    private:
    int &index;
    public:
    func(int &i):index(i){};
    void operator() (){
        std::cout << "func: do something with index " << index << std::endl;
    }
};
